package cool.webstudy.common.constant;
/**
 * @author think
 * @date 2024/12/2 12:09
 * @description: 日志相关常量
 */
public class LoggerConstant {
    //操作日志表前缀
    final static public String OPL_LOG_TABLE_NAME_PREFIX = "opl_log_";
    //操作日志索引前缀
    final static public String OPL_LOG_INDEX_NAME_PREFIX = "opl_log_";
    //接口请求日志表前缀
    final static public String API_LOG_TABLE_NAME_PREFIX = "api_log_";
    //接口请求日志索引前缀
    final static public String API_LOG_INDEX_NAME_PREFIX = "api_log_";
    //日志消费者组id
    final static public String LOGGER_GROUP_ID = "logger-group";

    //kafka消息队列topic
    final static public String OPL_LOG_DB_TOPIC = "operation-log-db-topic";
    final static public String OPL_LOG_ES_TOPIC = "operation-log-es-topic";
    final static public String API_LOG_DB_TOPIC = "api-log-db-topic";
    final static public String API_LOG_ES_TOPIC = "api-log-es-topic";
    //kafka消息队列key
    final static public String OPL_LOG_DB_TOPIC_KEY = "operation-log-db-key";
    final static public String OPL_LOG_ES_TOPIC_KEY = "operation-log-es-key";
    final static public String API_LOG_DB_TOPIC_KEY = "api-log-db-key";
    final static public String API_LOG_ES_TOPIC_KEY = "api-log-es-key";
    //业务日志记录器名称
    final static public String BUSINESS_LOGGER = "BusinessLogger";
}
